package org.wk.user.dao;

import org.joda.time.LocalDate;
import org.wk.core.db.dao.GenericJpaRepository;
import org.wk.user.domain.Attendances;

import java.util.Date;

/**
 * @Description 签到
 * @Param
 * @author ZhaoPing'an
 * @Date 2018/5/21 15:54
 */
public interface AttendancesDao extends GenericJpaRepository<Attendances, String> {

    /**
     * @Description 获取当前用户签到状态
     * @Param [localDate, userId]
     * @author ZhaoPing'an
     * @Date 2018/5/21 15:57
     */
    Attendances findBySignDateAndUserId(Date date, String userId);
}
